<legend class='hyc-legend'>
    <i class="fa fa-list"></i>&nbsp;
    <span>油价管理列表</span>
</legend>
<div class="row">
    <div class="col-md-1 text-right top7">油品</div>
    <div class="col-md-5">
        <div class="form-group">
            <button type="button" class="btn btn-default admin-select select hyc-width" ng-change="loadOilProducts()" ng-model="dOilPriceParams.oilProducts" bs-options="oilProducts.code as oilProducts.name for oilProducts in oilProductsList" bs-select placeholder="---请选择---">
            </button>
        </div>
    </div>
    <div class="col-md-1 text-right top7">起效时间</div>
    <div class="col-md-5">
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <input type="text" class="form-control hyc-color" ng-model="dOilPriceParams.useBeginTime" placeholder="开始时间" bs-datepicker date-format="yyyy-MM-dd">
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <input type="text" class="form-control hyc-color" ng-model="dOilPriceParams.useEndTime" placeholder="结束时间" bs-datepicker date-format="yyyy-MM-dd">
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-3">
        <div class="form-group text-right">
            <div class="btn btn-default btn-sm btn-warning" ng-click="loadData('query')">查询</div>&nbsp;&nbsp;&nbsp;
            <div class="btn btn-default btn-sm" ng-click="clearQuery()">重置</div>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-md-12 text-left">
        <div class="btn btn-default btn-warning btn-sm" ng-click="showModel()" >新增油价</div>
    </div>
</div>
<table class="table table-bordered table-hover" style="margin-top: 20px;">
    <tr>
        <th class="text-center">油品</th>
        <th class="text-center">油号</th>
        <th class="text-center">市场价</th>
        <th class="text-center">折扣</th>
        <th class="text-center">起效时间</th>
        <th class="text-center">是否可用</th>
        <th class="text-center">添加时间</th>
        <th class="text-center">更新时间</th>
        <th class="text-center">操作</th>
    </tr>
    <tr ng-repeat="dOilPrice in dOilPriceList track by $index">

        <td class="text-center">
            {{dOilPrice.oilProductsText}}
        </td>
        <td class="text-center">
            {{dOilPrice.oilType}}
        </td>
        <td class="text-center">
            {{dOilPrice.price}}
        </td>
        <td class="text-center">
            {{dOilPrice.seal}}
        </td>
        <td class="text-center">
            {{dOilPrice.startUseTime | date: 'yyyy-MM-dd'}}
        </td>
        <td class="text-center">
            {{dOilPrice.isEnable?'是':'否'}}
        </td>
        <td class="text-center">
            {{dOilPrice.createTime | date: 'yyyy-MM-dd HH:mm:ss'}}
        </td>
        <td class="text-center">
            {{dOilPrice.updateTime | date: 'yyyy-MM-dd HH:mm:ss'}}
        </td>
        <td class="text-center">
            <a href="javascript:;" ng-show="dOilPrice.isEnable" ng-click="isEnable(dOilPrice.id, dOilPrice.isEnable)">禁用</a>
            <a href="javascript:;" ng-hide="dOilPrice.isEnable" ng-click="isEnable(dOilPrice.id, dOilPrice.isEnable)">启用</a>
        </td>
    </tr>
    <tr ng-if="dOilPriceList.length <= 0">
        <td colspan="14">
            <div class="hyc-color text-center">
                暂无油价数据
            </div>
        </td>
    </tr>
</table>
<div ng-include="pageIncludeUrl" ng-if="dOilPriceList.length > 0"></div>
